package datastructure.player;

import datastructure.board.Board;
import datastructure.deck.Card;
import common.Position;

import java.awt.*;
import java.util.ArrayList;

/**
 * User: Lars Christian Ersly
 * Date: 03-06-11
 * Time: 10:26
 */
public class Player{
    /**
     * Enum representing all available robots in the game
     */
    //public static enum Robot {spin, squash, zoom, hammer, trundle, hulk_x90, twonkey, twitch}

    /**
     * The robot who represents this datastructure.player
     */
    public Robot robot;

    public int damage;
    public int life;
    public boolean powerDown;
    public ArrayList<Card> registers;
    public Position currentPosition;
    private Board board;
    private Color playerColor;

    public Position getCurrentPosition() {
        return currentPosition;
    }

    public void setCurrentPosition(Position currentPosition) {
        this.currentPosition = currentPosition;
    }

    public Player(Board board){
        life = 3;
        damage = 0;
        powerDown = false;
        registers = new ArrayList<Card>(5);
        this.board = board;
    }

    public Color getPlayerColor() {
        return playerColor;
    }

    @Override
    public String toString() {
        return "Player[" + life + " " + robot + " " + damage + " " + powerDown + " "+ currentPosition + "]" ;
    }

    public void setColor(Color playerColor) {
        this.playerColor = playerColor;
    }
}


